// 会员回访信息管理
import request from '@/router/axios'

// 分页查询会员回访信息
export function customerFeedBackFetchList(query) {
  return request({
    url: '/eims/eimscustomerfeedback/page',
    method: 'get',
    params: query
  })
}

// 新增会员回访信息
export function customerFeedBackAddObj(obj) {
  return request({
    url: '/eims/eimscustomerfeedback',
    method: 'post',
    data: obj
  })
}

// 点击回访按钮查看回访信息
export function customerFeedbackGetAllInfo(id) {
  return request({
    url: '/eims/eimscustomerfeedback/getAllInfo/'+id,
    method: 'get'
  })
}

// 通过ID查询顾客回访详情
export function customerFeedBackGetObj(id) {
  return request({
    url: '/eims/eimscustomerfeedback/' + id,
    method: 'get'
  })
}

// 删除会员回访信息
export function customerFeedBackDelObj(id) {
  return request({
    url: '/eims/eimscustomerfeedback/' + id,
    method: 'delete'
  })
}

// 修改会员回访信息
export function customerFeedBackPutObj(obj) {
  return request({
    url: '/eims/eimscustomerfeedback',
    method: 'put',
    data: obj
  })
}


// 根据personId分页查询回访信息
export function getFeedbackInfoByPersonId(data) {
  return request({
    url: '/eims/eimscustomerfeedback/getFeedbackInfoByPersonId',
    method: 'get',
    params: data
  })
}
